<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-3.5.1.min.js"></script>
    <style>
      div:nth-child(1) {
        display: none;
      }
    </style>
  </head>
  <body>
    <div>div1</div>
    <div>div2</div>
    <div>div3</div>
    <script>
      //文档就绪事件:
      // $(document).ready(function(){
      // 	//编写jQuery
      // });

      $(function () {
        $('div')
          .eq(0)
          .show(3000, function () {
            $(this).css('background', 'red');
          });
      });
    </script>
  </body>
</html>
